f_bgrEnd = {
	bgr_end_text = _this; 
	bgr_end = true;
    publicvariable "bgr_end_text";
    publicvariable "bgr_end";
};

0 = [] spawn {
	bgr_end = false;
	waitUntil{sleep 1; bgr_end};
	_endStr = format ["%1",bgr_end_text];
	
	titleText [_endStr, "BLACK OUT",10];
	
	sleep 10;
	endMission "END1";
};